package com.powernode.crm.clue.web;

import com.powernode.crm.settings.service.DicService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/clue")
public class ClueController {

    @Autowired
    private DicService dicService;

    //    workbench/index
    @RequestMapping("/index")
    public String workBeanchIndex(Model model){
        model.addAttribute("appellations",dicService.queryByTypeCode("appellation"));
        model.addAttribute("clueStates",dicService.queryByTypeCode("clueState"));
        model.addAttribute("sources",dicService.queryByTypeCode("source"));
        return "/workbench/clue/index";
    }
}
